package com.hsnn.medstgmini.trading.pur.model.form;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * @category 订单包信息
 * @author 蔡春龙
 * @date 2015年7月13日
 */
public class OrderPackage {

	private String orderId; // 订单id
	private String orderCode; // 订单明细编号
	private String orderPackId; // 订单包号
	private String hospId; // 医疗机构id
	private String hospName; // 医疗机构名称
	private String areaName; // 地区名称
	private String areaId; // 地区id
	private Date submitDateTime; // 采购时间
	private Integer orderCount; // 总条数

	private Double orderMoney; // 总金额
	private String delCompId; // 配送企业id
	private String delCompCode;	//	配送企业code
	private Date startDate; // 开始日期
	private Date endDate; // 结束日期
	private String startDatestr; // 开始日期
	private String endDatestr; // 结束日期
	private String confirmStartDate;
	private String confirmEndDate;
	private String delStartDate;
	private String delEndDate;
	private String recpStartDate;
	private String recpEndDate;
	private String psStartDate;
	private String psEndDate;
	
	private String compName; // 生产企业
	private String drugCode; // 药品编码
	private String drugName; // 通用名
	private String projName; // 项目名称
	private Integer orderStatus; // 订单状态
	private String delCompName;
	private String hospCode;
	
	public String getHospCode() {
		return hospCode;
	}

	public void setHospCode(String hospCode) {
		this.hospCode = hospCode;
	}

	public String getDelCompName() {
		return delCompName;
	}

	public void setDelCompName(String delCompName) {
		this.delCompName = delCompName;
	}

	public String getPsStartDate() {
		return psStartDate;
	}

	public void setPsStartDate(String psStartDate) {
		this.psStartDate = psStartDate;
	}

	public String getPsEndDate() {
		return psEndDate;
	}

	public void setPsEndDate(String psEndDate) {
		this.psEndDate = psEndDate;
	}

	public String getStartDatestr() {
		return startDatestr;
	}

	public void setStartDatestr(String startDatestr) {
		this.startDatestr = startDatestr;
	}

	public String getEndDatestr() {
		return endDatestr;
	}

	public void setEndDatestr(String endDatestr) {
		this.endDatestr = endDatestr;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getOrderPackId() {
		return orderPackId;
	}

	public void setOrderPackId(String orderPackId) {
		this.orderPackId = orderPackId;
	}

	public String getHospId() {
		return hospId;
	}

	public void setHospId(String hospId) {
		this.hospId = hospId;
	}

	public String getHospName() {
		return hospName;
	}

	public void setHospName(String hospName) {
		this.hospName = hospName;
	}

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public Date getSubmitDateTime() {
		return submitDateTime;
	}

	public void setSubmitDateTime(Date submitDateTime) {
		this.submitDateTime = submitDateTime;
	}

	public Integer getOrderCount() {
		return orderCount;
	}

	public void setOrderCount(Integer orderCount) {
		this.orderCount = orderCount;
	}

	public Double getOrderMoney() {
		return orderMoney;
	}

	public void setOrderMoney(Double orderMoney) {
		this.orderMoney = orderMoney;
	}

	public String getDelCompId() {
		return delCompId;
	}

	public void setDelCompId(String delCompId) {
		this.delCompId = delCompId;
	}

	public String getAreaId() {
		return areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getOrderCode() {
		return orderCode;
	}

	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}

	public String getCompName() {
		return compName;
	}

	public void setCompName(String compName) {
		this.compName = compName;
	}

	public String getDrugCode() {
		return drugCode;
	}

	public void setDrugCode(String drugCode) {
		this.drugCode = drugCode;
	}

	public String getProjName() {
		return projName;
	}

	public void setProjName(String projName) {
		this.projName = projName;
	}

	public Integer getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(Integer orderStatus) {
		this.orderStatus = orderStatus;
	}

	public String getDrugName() {
		return drugName;
	}

	public void setDrugName(String drugName) {
		this.drugName = drugName;
	}
	public String getConfirmStartDate() {
		return confirmStartDate;
	}

	public void setConfirmStartDate(String confirmStartDate) {
		this.confirmStartDate = confirmStartDate;
	}

	public String getConfirmEndDate() {
		return confirmEndDate;
	}

	public void setConfirmEndDate(String confirmEndDate) {
		this.confirmEndDate = confirmEndDate;
	}
	
	public String getDelStartDate() {
		return delStartDate;
	}

	public void setDelStartDate(String delStartDate) {
		this.delStartDate = delStartDate;
	}

	public String getDelEndDate() {
		return delEndDate;
	}

	public void setDelEndDate(String delEndDate) {
		this.delEndDate = delEndDate;
	}

	public String getRecpStartDate() {
		return recpStartDate;
	}

	public void setRecpStartDate(String recpStartDate) {
		this.recpStartDate = recpStartDate;
	}

	public String getRecpEndDate() {
		return recpEndDate;
	}

	public void setRecpEndDate(String recpEndDate) {
		this.recpEndDate = recpEndDate;
	}

	public String getDelCompCode() {
		return delCompCode;
	}

	public void setDelCompCode(String delCompCode) {
		this.delCompCode = delCompCode;
	}

	@Override
	public String toString() {
		return "OrderPackage [orderId=" + orderId + ", orderCode=" + orderCode
				+ ", orderPackId=" + orderPackId + ", hospId=" + hospId
				+ ", hospName=" + hospName + ", areaName=" + areaName
				+ ", areaId=" + areaId + ", submitDateTime=" + submitDateTime
				+ ", orderCount=" + orderCount + ", orderMoney=" + orderMoney
				+ ", delCompId=" + delCompId + ", delCompCode=" + delCompCode
				+ ", startDate=" + startDate + ", endDate=" + endDate
				+ ", startDatestr=" + startDatestr + ", endDatestr="
				+ endDatestr + ", confirmStartDate=" + confirmStartDate
				+ ", confirmEndDate=" + confirmEndDate + ", delStartDate="
				+ delStartDate + ", delEndDate=" + delEndDate
				+ ", recpStartDate=" + recpStartDate + ", recpEndDate="
				+ recpEndDate + ", psStartDate=" + psStartDate + ", psEndDate="
				+ psEndDate + ", compName=" + compName + ", drugCode="
				+ drugCode + ", drugName=" + drugName + ", projName="
				+ projName + ", orderStatus=" + orderStatus + ", delCompName="
				+ delCompName + ", hospCode=" + hospCode + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((areaId == null) ? 0 : areaId.hashCode());
		result = prime * result
				+ ((areaName == null) ? 0 : areaName.hashCode());
		result = prime * result
				+ ((compName == null) ? 0 : compName.hashCode());
		result = prime * result
				+ ((confirmEndDate == null) ? 0 : confirmEndDate.hashCode());
		result = prime
				* result
				+ ((confirmStartDate == null) ? 0 : confirmStartDate.hashCode());
		result = prime * result
				+ ((delCompCode == null) ? 0 : delCompCode.hashCode());
		result = prime * result
				+ ((delCompId == null) ? 0 : delCompId.hashCode());
		result = prime * result
				+ ((delCompName == null) ? 0 : delCompName.hashCode());
		result = prime * result
				+ ((delEndDate == null) ? 0 : delEndDate.hashCode());
		result = prime * result
				+ ((delStartDate == null) ? 0 : delStartDate.hashCode());
		result = prime * result
				+ ((drugCode == null) ? 0 : drugCode.hashCode());
		result = prime * result
				+ ((drugName == null) ? 0 : drugName.hashCode());
		result = prime * result + ((endDate == null) ? 0 : endDate.hashCode());
		result = prime * result
				+ ((endDatestr == null) ? 0 : endDatestr.hashCode());
		result = prime * result
				+ ((hospCode == null) ? 0 : hospCode.hashCode());
		result = prime * result + ((hospId == null) ? 0 : hospId.hashCode());
		result = prime * result
				+ ((hospName == null) ? 0 : hospName.hashCode());
		result = prime * result
				+ ((orderCode == null) ? 0 : orderCode.hashCode());
		result = prime * result
				+ ((orderCount == null) ? 0 : orderCount.hashCode());
		result = prime * result + ((orderId == null) ? 0 : orderId.hashCode());
		result = prime * result
				+ ((orderMoney == null) ? 0 : orderMoney.hashCode());
		result = prime * result
				+ ((orderPackId == null) ? 0 : orderPackId.hashCode());
		result = prime * result
				+ ((orderStatus == null) ? 0 : orderStatus.hashCode());
		result = prime * result
				+ ((projName == null) ? 0 : projName.hashCode());
		result = prime * result
				+ ((psEndDate == null) ? 0 : psEndDate.hashCode());
		result = prime * result
				+ ((psStartDate == null) ? 0 : psStartDate.hashCode());
		result = prime * result
				+ ((recpEndDate == null) ? 0 : recpEndDate.hashCode());
		result = prime * result
				+ ((recpStartDate == null) ? 0 : recpStartDate.hashCode());
		result = prime * result
				+ ((startDate == null) ? 0 : startDate.hashCode());
		result = prime * result
				+ ((startDatestr == null) ? 0 : startDatestr.hashCode());
		result = prime * result
				+ ((submitDateTime == null) ? 0 : submitDateTime.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		OrderPackage other = (OrderPackage) obj;
		if (areaId == null) {
			if (other.areaId != null)
				return false;
		} else if (!areaId.equals(other.areaId))
			return false;
		if (areaName == null) {
			if (other.areaName != null)
				return false;
		} else if (!areaName.equals(other.areaName))
			return false;
		if (compName == null) {
			if (other.compName != null)
				return false;
		} else if (!compName.equals(other.compName))
			return false;
		if (confirmEndDate == null) {
			if (other.confirmEndDate != null)
				return false;
		} else if (!confirmEndDate.equals(other.confirmEndDate))
			return false;
		if (confirmStartDate == null) {
			if (other.confirmStartDate != null)
				return false;
		} else if (!confirmStartDate.equals(other.confirmStartDate))
			return false;
		if (delCompCode == null) {
			if (other.delCompCode != null)
				return false;
		} else if (!delCompCode.equals(other.delCompCode))
			return false;
		if (delCompId == null) {
			if (other.delCompId != null)
				return false;
		} else if (!delCompId.equals(other.delCompId))
			return false;
		if (delCompName == null) {
			if (other.delCompName != null)
				return false;
		} else if (!delCompName.equals(other.delCompName))
			return false;
		if (delEndDate == null) {
			if (other.delEndDate != null)
				return false;
		} else if (!delEndDate.equals(other.delEndDate))
			return false;
		if (delStartDate == null) {
			if (other.delStartDate != null)
				return false;
		} else if (!delStartDate.equals(other.delStartDate))
			return false;
		if (drugCode == null) {
			if (other.drugCode != null)
				return false;
		} else if (!drugCode.equals(other.drugCode))
			return false;
		if (drugName == null) {
			if (other.drugName != null)
				return false;
		} else if (!drugName.equals(other.drugName))
			return false;
		if (endDate == null) {
			if (other.endDate != null)
				return false;
		} else if (!endDate.equals(other.endDate))
			return false;
		if (endDatestr == null) {
			if (other.endDatestr != null)
				return false;
		} else if (!endDatestr.equals(other.endDatestr))
			return false;
		if (hospCode == null) {
			if (other.hospCode != null)
				return false;
		} else if (!hospCode.equals(other.hospCode))
			return false;
		if (hospId == null) {
			if (other.hospId != null)
				return false;
		} else if (!hospId.equals(other.hospId))
			return false;
		if (hospName == null) {
			if (other.hospName != null)
				return false;
		} else if (!hospName.equals(other.hospName))
			return false;
		if (orderCode == null) {
			if (other.orderCode != null)
				return false;
		} else if (!orderCode.equals(other.orderCode))
			return false;
		if (orderCount == null) {
			if (other.orderCount != null)
				return false;
		} else if (!orderCount.equals(other.orderCount))
			return false;
		if (orderId == null) {
			if (other.orderId != null)
				return false;
		} else if (!orderId.equals(other.orderId))
			return false;
		if (orderMoney == null) {
			if (other.orderMoney != null)
				return false;
		} else if (!orderMoney.equals(other.orderMoney))
			return false;
		if (orderPackId == null) {
			if (other.orderPackId != null)
				return false;
		} else if (!orderPackId.equals(other.orderPackId))
			return false;
		if (orderStatus == null) {
			if (other.orderStatus != null)
				return false;
		} else if (!orderStatus.equals(other.orderStatus))
			return false;
		if (projName == null) {
			if (other.projName != null)
				return false;
		} else if (!projName.equals(other.projName))
			return false;
		if (psEndDate == null) {
			if (other.psEndDate != null)
				return false;
		} else if (!psEndDate.equals(other.psEndDate))
			return false;
		if (psStartDate == null) {
			if (other.psStartDate != null)
				return false;
		} else if (!psStartDate.equals(other.psStartDate))
			return false;
		if (recpEndDate == null) {
			if (other.recpEndDate != null)
				return false;
		} else if (!recpEndDate.equals(other.recpEndDate))
			return false;
		if (recpStartDate == null) {
			if (other.recpStartDate != null)
				return false;
		} else if (!recpStartDate.equals(other.recpStartDate))
			return false;
		if (startDate == null) {
			if (other.startDate != null)
				return false;
		} else if (!startDate.equals(other.startDate))
			return false;
		if (startDatestr == null) {
			if (other.startDatestr != null)
				return false;
		} else if (!startDatestr.equals(other.startDatestr))
			return false;
		if (submitDateTime == null) {
			if (other.submitDateTime != null)
				return false;
		} else if (!submitDateTime.equals(other.submitDateTime))
			return false;
		return true;
	}

	
}
